export const tableOption = {
  border: true,
  index: true,
  indexLabel: "序号",
  stripe: true,
  menuAlign: "center",
  align: "center",
  columnBtn: false,
  searchMenuSpan: 6,
  labelWidth: 120,
  searchBtnText: "查询",
  emptyBtnText: "重置",
  addBtn: false,
  editBtn: false,
  delBtn: false,
  menuWidth: 160,
  dialogEscape: false,
  dialogClickModal: false,
  fullscreenBtn: false,
  dialogWidth: "30%",
  span: 24,
  column: [
    {
      label: "公司名称",
      prop: "companyNameId",
      search: true,
      formslot: true,
      // dicUrl: '/config/syscompany/getCompanyByPhone',
      formatter: (row, value, label, column) => {
        return row.companyName;
      },
      rules: [
        {
          required: true,
          message: "请输入公司名称",
          trigger: "blur"
        }
      ]
    },
    {
      type: "input",
      label: "区域",
      prop: "area"
      // ,
      // rules: [
      //   {
      //     required: true,
      //     message: "请输入区域",
      //     trigger: "blur"
      //   }
      // ]
    },
    // {
    //   "type": "input",
    //   "label": "关联房产编号",
    //   "prop": "projectNumberId"
    // },
    {
      type: "select",
      label: "费用类型",
      prop: "costType",
      search: true,
      formslot: true,
      dicUrl: "/admin/dict/type/other_money_type",
      formatter: (row, value, label, column) => {
        return value + "";
      },
      // 'dicData': [{
      //   label: '待办费',
      //   value: 1
      // }, {
      //   label: '广告费',
      //   value: 2
      // }, {
      //   label: '保证金',
      //   value: 3
      // }],
      rules: [
        {
          required: true,
          message: "请选择费用类型",
          trigger: "blur"
        }
      ]
    },
    {
      type: "number",
      label: "缴费金额(元)",
      prop: "money",
      formatter: (row, value, label, column) => {
        if (value || value == 0) {
          return parseFloat(value).toFixed(2);
        } else {
          return value;
        }
      },
      rules: [
        {
          required: true,
          message: "请输入金额,只能为数字",
          trigger: "blur"
        }
      ]
    },
    {
      type: "input",
      label: "修改时间",
      prop: "updateDate",
      addDisplay: false,
      hide: true
    },
    {
      type: "input",
      label: "新增时间",
      prop: "createDate",
      addDisplay: false,
      hide: true
    },
    {
      type: "input",
      label: "是否退款",
      prop: "moneyType",
      addDisplay: false,
      hide: true
    },
    {
      label: "关联合同编号",
      prop: "contractNumber",
      formslot: true,
      dicUrl: "/contract/ctcontract/select"
      // slot: true
    },
    {
      type: "textarea",
      label: "备注",
      prop: "remark",
      overHidden: true
    }
  ]
};
